<?php echo $this -> Html -> css('Base/index'); ?>

<!-- BEGIN PAGE CONTENT-->
<div class="box">
	<div class="box-header">
		<h3 class="box-title">Products List</h3>
	</div><!-- /.box-header -->
	
	<!--thong bao-->
	<?php echo $this->Session->flash();?>
	<!--/thong bao-->
	<div class="box-body table-responsive">
		<!-- BEGIN TABLE PRODUCTS LIST-->
		<table id="example1" class="table table-bordered table-striped">
			<thead>
				<tr>
					<th>Tên shop</th>
					<th>Email</th>
					<th>Số Đt</th>
					<th>Web site</th>
					<th>Thời gian</th>
					<th>Xóa</th>
					
				</tr>
			</thead>
			<tbody>
				    <?php foreach($data as $item){?>
						<tr>
							<td><?php echo $item['Shop']['shop_name'];?></td>
							<td><?php echo $item['Shop']['email'];?></td>
							<td><?php echo $item['Shop']['phone_number'];?></td>
							<td><?php echo $item['Shop']['website'];?></td>
							<td><?php echo $item['Shop']['time_post'];?></td>
							<td>
								<a class="btn btn-warning" href="/admin/ShopManage/edit/<?php echo $item['Shop']['id'] ?>">
								 	Chỉnh sửa
								</a>
								 <a class="btn btn-danger" href="/admin/ShopManage/delete/<?php echo $item['Shop']['id'] ?>"
								 	onclick="if (confirm('Bạn có muốn xóa sản phẩm ?')) { return true; } return false;"
								 	>Xóa
								 </a>
							</td>
						</tr>
					<?php }?>
			</tbody>
		</table>
		<!-- END TABLE PRODUCTS LIST-->
	</div><!-- /.box-body -->
	 <!-- BEGIN PAGINATION -->
    <?php 
    	if ($this -> Paginator -> counter('{:pages}') > 1){
    		echo $this->element('paginationAdmin', array('Paginator' => $this->Paginator));
		}
    ?>
 <!-- END PAGINATION -->
</div><!-- /.box -->
<!-- END PAGE CONTENT -->

<!-- page script -->
